package com.example.springboot.service;

import com.example.springboot.common.Result;
import com.example.springboot.dto.CreativeDTO;
import com.example.springboot.dto.CreativeHomeDTO;
import com.example.springboot.entity.Creative;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.entity.Solution;

import java.util.HashMap;
import java.util.List;

public interface ICreativeService extends IService<Creative> {
    HashMap<String, List<CreativeDTO>> findAll();
    Creative insertCreative(Creative creative);
    List<Creative> getByUser(Integer userId);
    HashMap<String,List<CreativeDTO>> getBySearch(String keyWord);
    int getUserCount();
    CreativeDTO getDetails(Integer id);
    int updateView(Integer id);
    Result updateCreative(Creative creative);
    List<CreativeHomeDTO> getCreativeHomes(Integer userId);
    boolean removeCreativeInfo(Integer id);
    List<Creative> getCenter(Integer userId);
    Result adminGetPublished(int pageNum, int pageSize, Integer userId, String name, String sortWay);
    Result adminGetToExamine(int pageNum, int pageSize, Integer userId, String name);
    Result toPublish(Integer id);
    Result toUnPublish(Integer id);
    Result manageCreative(Creative creative);
    Result recoveryCreative(Creative creative);
}
